package chances.framework.jpa.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport;

import chances.framework.jpa.RepositoryHelper;

@Configuration
@EnableWebMvc
@ComponentScan(basePackages = "chances.framework.jpa.rest")
public class EntityMvcConfig extends WebMvcConfigurationSupport {
	

	@Bean
	public RepositoryHelper repositoryHelper() {
		return new RepositoryHelper(this.getApplicationContext());
	}

	
}
